/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 业主管理Entity
 * @author dby
 * @version 2020-10-15
 */
public class BasPerson extends DataEntity<BasPerson> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 业主姓名
	private String idCard;		// 身份证号
	private String phone;		// 联系方式
	private String corridor;		// 建筑id
	private String buildingName;		// 建筑名称
	private String interest;		// 爱好兴趣
	
	public BasPerson() {
		super();
	}

	public BasPerson(String id){
		super(id);
	}

	@Length(min=0, max=10, message="业主姓名长度必须介于 0 和 10 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=10, message="身份证号长度必须介于 0 和 10 之间")
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	
	@Length(min=0, max=10, message="联系方式长度必须介于 0 和 10 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=32, message="建筑id长度必须介于 0 和 32 之间")
	public String getCorridor() {
		return corridor;
	}

	public void setCorridor(String corridor) {
		this.corridor = corridor;
	}
	
	@Length(min=0, max=100, message="建筑名称长度必须介于 0 和 100 之间")
	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}
	
	@Length(min=0, max=20, message="爱好兴趣长度必须介于 0 和 20 之间")
	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}
	
}